<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="/Public/Js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/admin-common.js"></script>
</head>

<body>


<form class="table-form" name="form1" method="post" action="<?php echo U('cataddok');?>">

<div class="nav-table">
<span class="on" href="table-one">添加分类</span>
</div>
<div class="nav-bottom"></div>


<div class="input-box">
<ul id="table-one">
  <li>
   <label for="name">名称</label>
   <input type="text" name="name" id="name" />
  </li>
  <li>
   <label for="pid">上级分类</label>
   <select name="pid" id="pid">
   <option value="0">顶级分类</option>
   <?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><option value="<?php echo ($list['id']); ?>"><?php echo ($list['name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
   </select>
  </li>
  <li>
  <label for="title">标题</label>
  <input type="text" name="title" id="title" />
  </li>
  <li>
  <label for="keyword">关键词</label>
  <input type="text" name="keyword" id="keyword" />
  </li>
  <li>
  <label for="url">别名</label>
  <input type="text" name="url" id="url" />
  </li>
  <li>
   <label for="ord">展示序号</label>
   <input type="text" name="ord" id="ord" value="0" />
  </li>
  <li>
   <label for="description">内容摘要</label>
   <textarea name="description" id="description" cols="70" rows="5"></textarea>

  </li>

</ul>
 
  <div class="table-but"><input type="submit" name="button" id="button" value="提交"></div>
</div>
</form>

</body>
</html>